a[type="application/pdf"] vs a[href$=".pdf"]

Posted by metal-gear-solid on Stack Overflow See other posts from Stack Overflow or by metal-gear-solid
Published on 2010-05-30T04:05:20Z Indexed on 2010/05/30 4:12 UTC
Read the original article Hit count: 250

Filed under:

What is the difference between these 2 selectors a[type="application/pdf"] and a[href$=".pdf"]

a[type="application/pdf"] { 
  background-image: url(/images/pdf.gif);
  padding-left: 20px;
}

a[href$=".pdf"] { 
  background-image: url(/images/pdf.gif);
  padding-left: 20px;
}

© Stack Overflow or respective owner

Related posts about css